package cn.edu.ctbu.yrx.dao;

import cn.edu.ctbu.yrx.entity.CourseScore;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CourseScoreRepository extends JpaRepository<CourseScore, Integer> {
    List<CourseScore> findByStudentStuId(Integer stuId);
    public Page<CourseScore> findByStudentStuId(Integer stuId, Pageable pageable);

    public Page<CourseScore> findByTeacherTeacherId(Integer teacherId, Pageable pageable);

}
